<?php

/**
 * VideosAnimacion form base class.
 *
 * @package    form
 * @subpackage videos_animacion
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $
 */
class BaseVideosAnimacionForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'             => new sfWidgetFormInputHidden(),
      'tipo'           => new sfWidgetFormInput(),
      'nombre'         => new sfWidgetFormInput(),
      'titulooriginal' => new sfWidgetFormInput(),
      'anno'           => new sfWidgetFormInput(),
      'annofin'        => new sfWidgetFormTextarea(),
      'pagina'         => new sfWidgetFormInput(),
      'sinopsis'       => new sfWidgetFormTextarea(),
      'capitulos'      => new sfWidgetFormInput(),
      'duracion'       => new sfWidgetFormInput(),
      'insertado'      => new sfWidgetFormDate(),
      'validado'       => new sfWidgetFormInput(),
      'visitas'        => new sfWidgetFormInput(),
      'idusuario'      => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'             => new sfValidatorPropelChoice(array('model' => 'VideosAnimacion', 'column' => 'id', 'required' => false)),
      'tipo'           => new sfValidatorInteger(),
      'nombre'         => new sfValidatorString(array('max_length' => 100)),
      'titulooriginal' => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'anno'           => new sfValidatorInteger(array('required' => false)),
      'annofin'        => new sfValidatorString(array('required' => false)),
      'pagina'         => new sfValidatorString(array('max_length' => 255, 'required' => false)),
      'sinopsis'       => new sfValidatorString(array('required' => false)),
      'capitulos'      => new sfValidatorString(array('max_length' => 10, 'required' => false)),
      'duracion'       => new sfValidatorString(array('max_length' => 8, 'required' => false)),
      'insertado'      => new sfValidatorDate(array('required' => false)),
      'validado'       => new sfValidatorInteger(),
      'visitas'        => new sfValidatorInteger(),
      'idusuario'      => new sfValidatorInteger(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('videos_animacion[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'VideosAnimacion';
  }


}
